package com.atguigu.config;

import com.atguigu.dao.BookDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author : wenchao.long
 * @date : Created in 2020/11/15 16:08:17 周日
 * @description :
 */
@Configuration
public class MainConfigOfAutowired {

    @Primary
    @Bean
    public BookDao bookDao() {
        return new BookDao();
    }
}
